package com.qf.shopping.pojo.article;

import java.io.Serializable;

/**
 * @Author 82024
 * @Long 2019/4/15 18:31
 * @Version 1.0
 * @Description 资讯操作记录表
 **/
public class ArticleAction implements Serializable {

    private static final long serialVersionUID = 1671397258794885817L;

    private Long id;    //ID，主键
    private Long articleId; //资讯ID
    private Integer operatorUid;    //操作人ID 0：未启用   1：已启用
    private String operatorUserName;    //操作人名字 0：非默认摘要 1：默认摘要
    private Long createTime;    //创建时间
    private String content; //操作描述
    private Integer operatorType;   //操作类型  1：新增    2：编辑    3：审核    4：删除    5：发布

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getArticleId() {
        return articleId;
    }

    public void setArticleId(Long articleId) {
        this.articleId = articleId;
    }

    public Integer getOperatorUid() {
        return operatorUid;
    }

    public void setOperatorUid(Integer operatorUid) {
        this.operatorUid = operatorUid;
    }

    public String getOperatorUserName() {
        return operatorUserName;
    }

    public void setOperatorUserName(String operatorUserName) {
        this.operatorUserName = operatorUserName;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getOperatorType() {
        return operatorType;
    }

    public void setOperatorType(int operatorType) {
        this.operatorType = operatorType;
    }

    public ArticleAction() {
    }

    public ArticleAction(Long id, Long articleId, Integer operatorUid, String operatorUserName, Long createTime, String content, Integer operatorType) {
        this.id = id;
        this.articleId = articleId;
        this.operatorUid = operatorUid;
        this.operatorUserName = operatorUserName;
        this.createTime = createTime;
        this.content = content;
        this.operatorType = operatorType;
    }

    @Override
    public String toString() {
        return "ArticleAction{" +
                "id=" + id +
                ", articleId=" + articleId +
                ", operatorUid=" + operatorUid +
                ", operatorUserName='" + operatorUserName + '\'' +
                ", createTime=" + createTime +
                ", content='" + content + '\'' +
                ", operatorType=" + operatorType +
                '}';
    }
}
